Sets the basic attributes of a sample, stream, MOD music, or CD channel.
BOOL WINAPI BASS_ChannelSetAttributes( |
Parameters
handle | The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or CDCHANNEL. |
freq | The sample rate... -1 = leave current. |
volume | The volume... 0 (silent) - 100 (max), -1 = leave current. |
pan | The panning position... -100 (left) - 100 (right), -101 = leave current. |
Return value
If succesful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not a valid channel. |
BASS_ERROR_CDINIT | BASS_CDInit has not been successfully called. |
BASS_ERROR_CDVOL | BASS could not find any volume control for the CD. |
Remarks
Only the volume attribute can be adjusted for the CD channel, but not all soundcards allow controlling of the CD volume level.
See also
BASS_ChannelGetAttributes, BASS_ChannelSet3DAttributes, BASS_SetGlobalVolumes